
<script type="text/javascript"> 
//<![CDATA[
function SetCwinHeight(){ 
    var bobo=document.getElementById("frame1"); //iframe id 
	if (document.getElementById){ 
		if (bobo && !window.opera){ 
			if (bobo.contentDocument && bobo.contentDocument.body.offsetHeight){ 
			    bobo.height = bobo.contentDocument.body.offsetHeight; 
				}else if(bobo.Document && bobo.Document.body.scrollHeight){ 
				bobo.height = bobo.Document.body.scrollHeight; 
			} 
		} 
	} 
} 
//]]> 
</script> 

<?php
    $productId = $this->pid;
    $itemId = $this->itemId;
    $itemImages = $this->itemImages;
?>
<input id="editImageItemId" type="hidden" value="<?php echo $itemId; ?>" />
<input id="urlPath" type="hidden" value="<?php echo HttpUtil::baseUrl();?>" />
<input type="hidden" id="errorInfoDefaultImage" value="<?php echo $this->translate("errorInfoDefaultImage"); ?>" />

<!-- 
<?php if(empty($itemImages)){ ?>
<input type="hidden" id="isEmptyImageInfo" value="1" />
<?php }else{ ?>
<input type="hidden" id="isEmptyImageInfo" value="0" />
<?php } ?>
 -->
 
<div style="">
    <iframe src="<?php echo HttpUtil::baseUrl()."/inventory/product/editimageinfo/pid/".$productId."/itemId/".$itemId; ?>" id='frame1' name='frame1' align='middle' marginwidth='0' marginheight='0' vspace='-170' hspace='0' frameborder='no' scrolling='no' width='900' onload="javascript:SetCwinHeight();">
    </iframe>
</div>

<div id="iframeUpload" style="">
	<iframe src="<?php echo HttpUtil::baseUrl()."/inventory/product/uploadimage/pid/".$productId."/itemId/".$itemId; ?>" id='frame2' name='frame2' align='middle' marginwidth='0' marginheight='0' vspace='-170' hspace='0' frameborder='no' scrolling='no' width='776' height='500'>
	</iframe>
</div>




